package Demo1;

public class Course {
    //课程：课程编号、课程名称、课程类型、课时数、选课人数上限、学分
   private String courseNo,courseName,courseType;
    private int courseNum,selectCourseMaxNum;
    private double credit;

    public Course(String s, String s1, String s2, int i, int i1, float v) {
        this.courseNo=s;
        this.courseName=s1;
        this.courseType=s2;
        this.courseNum=i1;
        this.selectCourseMaxNum=i;
        this.credit=v;
    }

    public String getCourseNo() {
        return courseNo;
    }

    public void setCourseNo(String courseNo) {
        this.courseNo = courseNo;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getCourseType() {
        return courseType;
    }

    public void setCourseType(String courseType) {
        this.courseType = courseType;
    }

    public int getCourseNum() {
        return courseNum;
    }

    public void setCourseNum(int courseNum) {
        this.courseNum = courseNum;
    }

    public int getSelectCourseMaxNum() {
        return selectCourseMaxNum;
    }

    public void setSelectCourseMaxNum(int selectCourseMaxNum) {
        this.selectCourseMaxNum = selectCourseMaxNum;
    }

    public double getCredit() {
        return credit;
    }

    public void setCredit(double credit) {
        this.credit = credit;
    }

    @Override
    public String toString() {
        return "Course{" +
                "courseNo='" + courseNo + '\'' +
                ", courseName='" + courseName + '\'' +
                ", courseType='" + courseType + '\'' +
                ", courseNum=" + courseNum +
                ", selectCourseMaxNum=" + selectCourseMaxNum +
                ", credit=" + credit +
                '}';
    }
}
